package cc.co.bengkeljava.Enum;

public class TesterWarnaEnum {
	public void tester() {
		tampilkanWarna(WarnaEnum.MERAH);
	}

	public void tampilkanWarna(WarnaEnum warna) {
		switch (warna) {
		case HITAM:
			System.out.println("HITAM");
			break;
		case KUNING:
			System.out.println("KUNING");
			break;
		case HIJAU:
			System.out.println("HIJAU");
			break;
		case MERAH:
			System.out.println("MERAH");
			break;
		}
	}

}
